www.gusucode.com > 落叶冰点万能企业网站内容管理系统 V9.1 > 落叶冰点万能企业网站内容管理系统 V9.1\code\admin\admin_danArticle\D_del_class.asp

    



<LINK href="../css.css" type=text/css rel=stylesheet>
<%

dir_set="../../"


%>


<!--#include file=../../inc/conn.asp-->
<!--#include file=../../inc/Functionb.asp-->

<!--#include file=../../inc/ajaxLIB.asp-->

<!--#include file=../inc/checkadmin2.asp-->

<!--#include file=../../inc/functionFiless.asp-->

<!--#include file=inc_lanmu_bl.asp-->



<%
AJAXshowLoader()


%>



	<%
biao="[ND_danArticle_class]"


sys_content_type=trim(request("sys_content_type"))




set rs44g=server.CreateObject("adodb.recordset")
rs44g.open "select * from ND_channel where sys_content_type_name='"&sys_content_type&"' and lanmu_type='"&lanmu_taba&"'",conn,1,1
if find_dataw(lanmu_taba,rs44g("id"),3)<>"1" and qx_if_max=0 then
response.redirect "../D_suodinguser.asp"
end if



%>

<%
err1=0
set rs44=server.CreateObject("adodb.recordset")
rs44.open "select * from "&biao&" where parent_id_list like '%,"&request("id")&",%' or parent_id='"&request("id")&"'",conn,1,1
if not rs44.eof then




err1=1
%>
<script language="javascript">
alert("该分类下有子分类,请先删除子分类");
history.go(-1);

</script>



<%




end if
%>


<% if err1=0 then


conn.execute("delete from "&biao&" where id="&request("id"))




%>

<script language="javascript">
alert("删除成功");
self.location="D_admin_Article_class.asp?sys_content_type=<%=sys_content_type%>";

</script>

<%




end if
%>



<%

AJAXcloseLoader()
%>